CC=g++

all: pleasure

pleasure: main.o population.o node_list.o generation_table.o generation.o
	$(CC) -O -O2 main.o population.o node_list.o generation_table.o generation.o -o pleasure -lComboReduct -lLADSUtil

main.o: main.cpp
	$(CC) -c -O -O2 main.cpp

population.o: population.cpp population.hpp
	$(CC) -c -O -O2 population.cpp

node_list.o: node_list.cpp node_list.hpp
	$(CC) -c -O -O2 node_list.cpp

generation_table.o: generation_table.cpp generation_table.hpp
	$(CC) -c -O -O2 generation_table.cpp

generation.o: generation.cpp generation.hpp
	$(CC) -c -O -O2 generation.cpp

clean:
	rm *~ *.o pleasure
